package com.config;

import jakarta.servlet.ServletContext;
import jakarta.servlet.ServletException;
import org.springframework.boot.web.servlet.ServletContextInitializer;

/**
 * @author chengyadong
 * @date 2023/9/23 15:21
 * @description tomcat中定义的ServletContextInitializer
 */
public class TomcatServletContextInitializer implements ServletContextInitializer {
	@Override
	public void onStartup(ServletContext servletContext) throws ServletException {
		System.out.println("通过tomcatStarter真正的jakarta调用衍生的org.springframework.boot.web.servlet.ServletContextInitializer");
	}
}
